package com.letoken.platform.pub.req;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * 分页请求对象
 *
 */
@Data
@ApiModel(value = "分页请求对象", description = "分页请求对象")
public class QueryReqBase implements Serializable {

    @ApiModelProperty(name = "pageReq", value = "分页和排序对象", example = "")
    protected PageReq pageReq;

    public PageReq getPageReq() {
        if (pageReq == null) {
            return new PageReq();
        }
        return pageReq;
    }

}
